package it.hopeless.jee6.conversation;


@SaveLetter
public class SaveLetterCollector extends LetterCollector{

    private StringBuffer added = new StringBuffer();
    private int counter = 0;


    public void setText(String text) {
        for(char c : text.toCharArray()){
            letters.add(c);
        }

       counter++;
       added.append(counter+ ") " + text + " ");
    }

    public String getText() {
        return "";
    }

    public String getAddedText(){
        return added.toString();
    }

}